package com.web.actions.login;

import com.web.actions.AbstractAction;

import org.apache.struts.action.*;
import javax.servlet.http.*;

public class LogoutAction extends AbstractAction {
	
  public ActionForward execute(ActionMapping actionMapping,
      ActionForm actionForm, HttpServletRequest request,
      HttpServletResponse response) {

    // Elimino el usuario conectado de la session.
    request.getSession().removeAttribute("usuarioConectado");

    // Forwardeo.
    return actionMapping.findForward("success");
  }
}